package cn.luowenjie.faceclock.clock;


import java.io.Serializable;
import java.util.Calendar;

public class Clock implements Serializable {
    private int id;
    private int hour;
    private int minute;
    private boolean state;
    private int clocktype;
    private String tag;
    private int repeat;
    private static final int FACE = 1;
    private static final int LOCATION = 2;
    private static final int COMMON = 3;

    public Clock(){
        super();
    }

    public Clock(int id, int hour, int minute, boolean state, String tag, int repeat) {
        this.hour = hour;
        this.minute = minute;
        this.state = state;
        this.tag = tag;
        this.repeat = repeat;
        this.id = id;

    }

    public int getClockType() {
        switch (this.clocktype){
            case 1:
                return FACE;
            case 2:
                return LOCATION;

            case 3:
                return COMMON;

            default:
                return 1;

        }
    }

    public void setClocktype(int clocktype) {
        this.clocktype = clocktype;
    }

    public boolean getState() {
        return state;
    }

    public void setState(boolean state) {this.state = state;}

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }


    public int getRepeat() {
        return repeat;
    }

    public void setRepeat(int repeat) {
        this.repeat = repeat;
    }

    public int getHour() {
        return hour;
    }

    public void setHour(int hour) {
        this.hour = hour;
    }

    public int getMinute() {
        return minute;
    }

    public void setMinute(int minute) {
        this.minute = minute;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}
